namespace SoulSolutions.Cluster.JavaScriptControl
{
    public class LocationFinder
    {
        private Bounds bounds;

        public LocationFinder(Bounds bounds)
        {
            this.bounds = bounds;
        }

        public bool FindByBounds(location item)
        {
            return (item.lat >= bounds.SE.Lat) && (item.lat <= bounds.NW.Lat) && (item.lon >= bounds.NW.Lon) && (item.lon <= bounds.SE.Lon);
        }
    }
}